/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Ventanas;

/**
 *
 * @author KarenM
 */
public class panUsuarios extends javax.swing.JPanel {

    /**
     * Creates new form panUsuarios
     */
    public panUsuarios() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        panMenu = new javax.swing.JPanel();
        btnIngreso = new javax.swing.JButton();
        bntModificar = new javax.swing.JButton();
        btnEliminar = new javax.swing.JButton();
        btnCheckIn = new javax.swing.JButton();
        btnCheckOut = new javax.swing.JButton();
        panVentanas = new javax.swing.JPanel();

        panMenu.setBackground(new java.awt.Color(255, 204, 51));

        btnIngreso.setFont(new java.awt.Font("Arial Unicode MS", 1, 12)); // NOI18N
        btnIngreso.setForeground(new java.awt.Color(0, 153, 255));
        btnIngreso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/milky_blue.png"))); // NOI18N
        btnIngreso.setText("Ingreso");
        btnIngreso.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnIngresoMouseClicked(evt);
            }
        });

        bntModificar.setFont(new java.awt.Font("Arial Unicode MS", 1, 12)); // NOI18N
        bntModificar.setForeground(new java.awt.Color(0, 153, 255));
        bntModificar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/cream_choco.png"))); // NOI18N
        bntModificar.setText("Modificar");

        btnEliminar.setFont(new java.awt.Font("Arial Unicode MS", 1, 12)); // NOI18N
        btnEliminar.setForeground(new java.awt.Color(0, 153, 255));
        btnEliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/choko_crema.png"))); // NOI18N
        btnEliminar.setText("Eliminar");

        btnCheckIn.setFont(new java.awt.Font("Arial Unicode MS", 1, 12)); // NOI18N
        btnCheckIn.setForeground(new java.awt.Color(0, 153, 255));
        btnCheckIn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/cream1.png"))); // NOI18N
        btnCheckIn.setText("Check In");

        btnCheckOut.setFont(new java.awt.Font("Arial Unicode MS", 1, 12)); // NOI18N
        btnCheckOut.setForeground(new java.awt.Color(0, 153, 255));
        btnCheckOut.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/cream_funny.png"))); // NOI18N
        btnCheckOut.setText("Check Out");

        javax.swing.GroupLayout panMenuLayout = new javax.swing.GroupLayout(panMenu);
        panMenu.setLayout(panMenuLayout);
        panMenuLayout.setHorizontalGroup(
            panMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panMenuLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(btnCheckOut, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnCheckIn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnEliminar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(bntModificar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnIngreso, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        panMenuLayout.setVerticalGroup(
            panMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panMenuLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btnIngreso)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(bntModificar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnEliminar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnCheckIn)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnCheckOut)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        panVentanas.setBackground(new java.awt.Color(255, 102, 102));

        javax.swing.GroupLayout panVentanasLayout = new javax.swing.GroupLayout(panVentanas);
        panVentanas.setLayout(panVentanasLayout);
        panVentanasLayout.setHorizontalGroup(
            panVentanasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 461, Short.MAX_VALUE)
        );
        panVentanasLayout.setVerticalGroup(
            panVentanasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(panMenu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panVentanas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panVentanas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(panMenu, javax.swing.GroupLayout.PREFERRED_SIZE, 344, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents

    private void btnIngresoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnIngresoMouseClicked

        panVentanas.removeAll();
        panVentanas.add(new panIngresoUsuarios());
        panVentanas.updateUI();
        
        // TODO add your handling code here:
    }//GEN-LAST:event_btnIngresoMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bntModificar;
    private javax.swing.JButton btnCheckIn;
    private javax.swing.JButton btnCheckOut;
    private javax.swing.JButton btnEliminar;
    private javax.swing.JButton btnIngreso;
    private javax.swing.JPanel panMenu;
    private javax.swing.JPanel panVentanas;
    // End of variables declaration//GEN-END:variables
}
